"""
    部门删除页面类
"""
from selenium.webdriver.common.by import By

from base.base_page import BasePage


class PageDeptDelete(BasePage):
    # 初始化
    def __init__(self):
        super().__init__()
        # 部门删除键
        self.dept_delete_btn = (By.XPATH, "//*[@id='app']/div/div[2]/section/div/div[2]/div[3]/table/tbody/tr[3]/td[4]/div/button[2]/span")
        # 点击确定键
        self.dept_delete_ok_btn = (By.XPATH, "//span[contains(text(),'确定')]")


    # 部门删除页面方法
    def page_dept_delete(self):
        # 点击部门删除键
        self.base_click(self.dept_delete_btn)
        # 点击确定键
        self.base_click(self.dept_delete_ok_btn)







